package com.panshi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 问题表
 * </p>
 *
 * @author xhlMr
 * @since 2020-08-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AppMatterT对象", description="问题表")
public class AppMatterT implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "matter_id", type = IdType.AUTO)
    private Integer matterId;

    @ApiModelProperty(value = "分类id")
    private Integer classifyId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "问题标题")
    private String matterTitle;

    @ApiModelProperty(value = "问题背景")
    private String matterContent;

    @ApiModelProperty(value = "上架时间")
    private Date groundTime;

    @ApiModelProperty(value = "问题阅读量")
    private Long readCount;

    @ApiModelProperty(value = "问题评论量")
    private Long commentCount;

    @ApiModelProperty(value = "问题收藏量")
    private Long collectCount;

    @ApiModelProperty(value = "问题回答量")
    private Long answerCount;

    @ApiModelProperty(value = "是否置顶: y是; n否")
    @TableField("matter_isTop")
    private String matterIstop;

    @ApiModelProperty(value = "答题数组")
    private List<AppAnswerT> answerList;

    @ApiModelProperty(value = "答题对象首页搜索")
    private AppAnswerT answerT;

    @ApiModelProperty(value = "类型表")
    private ClassifyT classifyT;

    @ApiModelProperty(value = "发表问答用户对象")
    private AppUserT appUserT;

    @ApiModelProperty(value = "回答用户对象")
    private AppUserT replyUser;

    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;
}
